<template>
  <div class="page_root" data-page-name="绩效管理" data-page-identification="w_0t99ah6jy8">
    <a-spin :spinning="pageLoading.loading" :tip="pageLoading.tip">
      <!-- begin vid_lbww2v02oz 工时导出 -->
      <a-modal
        class="vid_lbww2v02oz"
        v-model:visible="vid_lbww2v02oz_props.visible"
        :centered="true"
        :title="'工时导出'"
        :maskClosable="false"
        @cancel="handle_vid_lbww2v02oz_cancel"
        @ok="handle_vid_lbww2v02oz_ok"
      >
        <!-- begin vid_s7t3ge3zo2 表单容器_mp9t5nexdn -->
        <a-form class="vid_s7t3ge3zo2" :model="t_fcujslcgtn" :formModel="vid_s7t3ge3zo2_props.formModel">
          <!-- begin vid_ltjg0mie4l 表单项容器_gf3u5d9463 -->
          <a-form-item name="h_cf5uc7jugp" :rules="t_fcujslcgtn_rules[`h_cf5uc7jugp`]" class="vid_ltjg0mie4l" :label-col='{"span":4}' :wrapper-col='{"span":20}'>
            <!-- begin vid_3emijbqra1 日期_ek2mdgx089 -->
            <a-date-picker
              class="vid_3emijbqra1"
              :getPopupContainer="(node) => node.parentNode"
              v-model:value="t_fcujslcgtn.h_cf5uc7jugp"
              :format="'YYYY-MM'"
              :valueFormat="'YYYY-MM'"
              :picker="'month'"
              :showTime="vid_3emijbqra1_props.showTime"
            >
            </a-date-picker>
            <!-- end vid_3emijbqra1 日期_ek2mdgx089 -->
            <template #label>
              <!-- begin vid_6ofr5w6z9b 选择日期 -->
              <span class="vid_6ofr5w6z9b"> 选择日期 </span>
              <!-- end vid_6ofr5w6z9b 选择日期 -->
            </template>
          </a-form-item>
          <!-- end vid_ltjg0mie4l 表单项容器_gf3u5d9463 -->
          <!-- begin vid_u1zbgx89hw 表单项容器_nb8arcptp3 -->
          <a-form-item name="f_7wnp4qndkl" :rules="t_fcujslcgtn_rules[`f_7wnp4qndkl`]" class="vid_u1zbgx89hw" :label-col='{"span":4}' :wrapper-col='{"span":20}'>
            <!-- begin vid_8pq5h8kjty 下拉树_72sr0egjmf -->
            <a-tree-select
              class="vid_8pq5h8kjty"
              :treeNodeFilterProp="'name'"
              :getPopupContainer="(node) => node.parentNode"
              v-model:value="t_fcujslcgtn.f_7wnp4qndkl"
              :fieldNames="{'children':'children','label':'name','value':'id','key':'id'}"
              :multiple="true"
              :treeCheckable="true"
              :placeholder="'请选择部门'"
              :selected="vid_8pq5h8kjty_props.selected"
              :treeData="vid_8pq5h8kjty_options()"
              @dropdownVisibleChange="handle_vid_8pq5h8kjty_dropdownVisibleChange"
              @change="handle_vid_8pq5h8kjty_change"
            >
            </a-tree-select>
            <!-- end vid_8pq5h8kjty 下拉树_72sr0egjmf -->
            <template #label>
              <!-- begin vid_hcjh0lqzfs 选择部门 -->
              <span class="vid_hcjh0lqzfs"> 选择部门 </span>
              <!-- end vid_hcjh0lqzfs 选择部门 -->
            </template>
          </a-form-item>
          <!-- end vid_u1zbgx89hw 表单项容器_nb8arcptp3 -->
          <!-- begin vid_wp8t2titbx 表单项容器_0otjn91npg -->
          <a-form-item name="o_yqcephte35" :rules="t_fcujslcgtn_rules[`o_yqcephte35`]" class="vid_wp8t2titbx" :label-col='{"span":4}' :wrapper-col='{"span":20}'>
            <!-- begin vid_fdfc042t11 数字输入框_z4fleb36ho -->
            <a-input-number class="vid_fdfc042t11" v-model:value="t_fcujslcgtn.o_yqcephte35" :placeholder="'请选择工时天数'"> </a-input-number>
            <!-- end vid_fdfc042t11 数字输入框_z4fleb36ho -->
            <template #label>
              <!-- begin vid_kjo3yviibi 工时天数 -->
              <span class="vid_kjo3yviibi"> 工时天数 </span>
              <!-- end vid_kjo3yviibi 工时天数 -->
            </template>
          </a-form-item>
          <!-- end vid_wp8t2titbx 表单项容器_0otjn91npg -->
          <!-- begin vid_pbk6at6cxv 表单项容器_7xnwvrh3x7 -->
          <a-form-item name="u_9p02rrl395" :rules="t_fcujslcgtn_rules[`u_9p02rrl395`]" class="vid_pbk6at6cxv" :label-col='{"span":4}' :wrapper-col='{"span":20}'>
            <!-- begin vid_ekimywdomj 单选按钮组_j6qe6kpofu -->
            <a-radio-group
              class="vid_ekimywdomj"
              v-model:value="t_fcujslcgtn.u_9p02rrl395"
              :selected="vid_ekimywdomj_props.selected"
              :options="vid_ekimywdomj_options()"
              @change="handle_vid_ekimywdomj_change"
            >
            </a-radio-group>
            <!-- end vid_ekimywdomj 单选按钮组_j6qe6kpofu -->
            <template #label>
              <!-- begin vid_nsl21yhm86 发送邮件 -->
              <span class="vid_nsl21yhm86"> 发送邮件 </span>
              <!-- end vid_nsl21yhm86 发送邮件 -->
            </template>
          </a-form-item>
          <!-- end vid_pbk6at6cxv 表单项容器_7xnwvrh3x7 -->
        </a-form>
        <!-- end vid_s7t3ge3zo2 表单容器_mp9t5nexdn -->
      </a-modal>
      <!-- end vid_lbww2v02oz 工时导出 -->
      <!-- begin vid_hofoolfsxh 布局容器_j7ks7ygx1q -->
      <a-row class="vid_hofoolfsxh" :gutter="16" :slots="'4:20'">
        <a-col :span="4">
          <!-- begin vid_amn8b36obs 容器_2dttoplo4z -->
          <al-box class="vid_amn8b36obs">
            <!-- begin vid_2jde4eeige 容器_udcgou17ra -->
            <al-box class="vid_2jde4eeige">
              <!-- begin vid_y7vcxwycjn 项目列表 -->
              <span class="vid_y7vcxwycjn"> 项目列表 </span>
              <!-- end vid_y7vcxwycjn 项目列表 -->
            </al-box>
            <!-- end vid_2jde4eeige 容器_udcgou17ra -->
            <!-- begin vid_e57pxzj5tq 容器_wr6je6h3qt -->
            <al-box class="vid_e57pxzj5tq">
              <!-- begin vid_kjy9opxgxl 绩效管理输入框 -->
              <a-input
                autocomplete="off"
                class="vid_kjy9opxgxl"
                v-model:value="vid_kjy9opxgxl_props.value"
                :placeholder="'请输入项目名称进行查询'"
                :allowClear="true"
                @change="handle_vid_kjy9opxgxl_change"
              >
                <template #suffix
                  ><span role="img" class="anticon"
                    ><embed
                      style="width: 1em;height:1em;"
                      src="" /></span
                ></template>
              </a-input>
              <!-- end vid_kjy9opxgxl 绩效管理输入框 -->
            </al-box>
            <!-- end vid_e57pxzj5tq 容器_wr6je6h3qt -->
            <!-- begin vid_8kjlglq0ja 容器_y1uevcvi3k -->
            <al-box class="vid_8kjlglq0ja">
              <!-- begin vid_t5g2fxyxpm 绩效管理树形控件 -->
              <al-tree-extend
                class="vid_t5g2fxyxpm"
                v-model:checkedKeys="vid_t5g2fxyxpm_props.checkedKeys"
                v-model:selectedKeys="vid_t5g2fxyxpm_props.selectedKeys"
                v-model:expandedKeys="vid_t5g2fxyxpm_props.expandedKeys"
                :fieldNames="{'children':'children','title':'projectName','key':'projectId'}"
                :selectedBackgroundColor="'#EBF1FF'"
                :defaultExpandAll="true"
                :backgroundColor="'#F5F5F5'"
                :lazyParams="vid_t5g2fxyxpm_props.lazyParams"
                :clickNode="vid_t5g2fxyxpm_props.clickNode"
                :selected="vid_t5g2fxyxpm_props.selected"
                :treeData="vid_t5g2fxyxpm_options()"
                @select="handle_vid_t5g2fxyxpm_select"
                style="--background-hover: #F5F5F5; --background-select: #EBF1FF"
              >
              </al-tree-extend>
              <!-- end vid_t5g2fxyxpm 绩效管理树形控件 -->
            </al-box>
            <!-- end vid_8kjlglq0ja 容器_y1uevcvi3k -->
          </al-box>
          <!-- end vid_amn8b36obs 容器_2dttoplo4z -->
        </a-col>
        <a-col :span="20">
          <!-- begin vid_tbaf1blzmc 容器_pcbm7alx7b -->
          <al-box class="vid_tbaf1blzmc">
            <!-- begin vid_yh7c6caxnc 容器_ny0zuqgmfi -->
            <al-box class="vid_yh7c6caxnc">
              <!-- begin vid_6h2qv1wq73 表单容器_zxc3fo6w46 -->
              <a-form class="vid_6h2qv1wq73" :model="r_u5l4887ms8" :formModel="vid_6h2qv1wq73_props.formModel">
                <!-- begin vid_o4h5lwg0r0 布局容器_gd9w7kz9g9 -->
                <a-row class="vid_o4h5lwg0r0" :slots="'6:6:6:6'">
                  <a-col :span="6">
                    <!-- begin vid_r81g68q8tj 表单项容器_7uunkz4gkh -->
                    <a-form-item name="q_82xlu1goty" :rules="r_u5l4887ms8_rules[`q_82xlu1goty`]" class="vid_r81g68q8tj" :label-col='{"span":6}' :wrapper-col='{"span":18}'>
                      <!-- begin vid_gv96gndjai 人效日期区间 -->
                      <a-range-picker
                        class="vid_gv96gndjai"
                        :allowEmpty="[true,true]"
                        :getPopupContainer="(node) => node.parentNode"
                        v-model:value="r_u5l4887ms8.q_82xlu1goty"
                        :format="'YYYY-MM-DD'"
                        :valueFormat="'YYYY-MM-DD'"
                        :placeholder="['开始时间','结束时间']"
                        :picker="vid_gv96gndjai_props.picker"
                        :showTime="vid_gv96gndjai_props.showTime"
                        @change="handle_vid_gv96gndjai_change"
                      >
                      </a-range-picker>
                      <!-- end vid_gv96gndjai 人效日期区间 -->
                      <template #label>
                        <!-- begin vid_mxxqhkz6zr 选择日期 -->
                        <span class="vid_mxxqhkz6zr"> 选择日期 </span>
                        <!-- end vid_mxxqhkz6zr 选择日期 -->
                      </template>
                    </a-form-item>
                    <!-- end vid_r81g68q8tj 表单项容器_7uunkz4gkh -->
                  </a-col>
                  <a-col :span="6">
                    <!-- begin vid_m4igum3zuw 按钮_q088ci9ify -->
                    <a-button class="vid_m4igum3zuw" :type="'primary'" @click="handle_vid_m4igum3zuw_click"> 查询 </a-button>
                    <!-- end vid_m4igum3zuw 按钮_q088ci9ify -->
                    <!-- begin vid_svfcotts7a 按钮_m6p3uyej3y -->
                    <a-button class="vid_svfcotts7a" @click="handle_vid_svfcotts7a_click"> 重置 </a-button>
                    <!-- end vid_svfcotts7a 按钮_m6p3uyej3y -->
                  </a-col>
                  <a-col :span="6"> </a-col>
                  <a-col :span="6"> </a-col>
                </a-row>
                <!-- end vid_o4h5lwg0r0 布局容器_gd9w7kz9g9 -->
              </a-form>
              <!-- end vid_6h2qv1wq73 表单容器_zxc3fo6w46 -->
            </al-box>
            <!-- end vid_yh7c6caxnc 容器_ny0zuqgmfi -->
            <!-- begin vid_u31jzhb4wq 容器_lg84dxzptp -->
            <al-box class="vid_u31jzhb4wq">
              <!-- begin vid_0fb3krwsqw case_kibga05xdt -->
              <div class="vid_0fb3krwsqw" :caseValue="vid_0fb3krwsqw_props.caseValue">
                <template v-if="checkCaseCondition(vid_t5g2fxyxpm_props?.selected.singleValue, 'EQUALS', -10)">
                  <!-- begin vid_ypeo0zjfpk 简单文本_99pe0ea1p5 -->
                  <span class="vid_ypeo0zjfpk"> 工时投入TOP10排行 </span>
                  <!-- end vid_ypeo0zjfpk 简单文本_99pe0ea1p5 -->
                  <!-- begin vid_hq1d1nkzf2 表格_k26mkp8e1r -->
                  <!-- 表格_k26mkp8e1r -->
                  <a-table
                    class="vid_hq1d1nkzf2"
                    :bordered="true"
                    :editRowSaveLoading="vid_hq1d1nkzf2_props.editRowSaveLoading"
                    :sorter="vid_hq1d1nkzf2_props.sorter"
                    :currentRow="vid_hq1d1nkzf2_props.currentRow"
                    :selectedRowList="vid_hq1d1nkzf2_props.selectedRowList"
                    :data-source="vid_hq1d1nkzf2_options()"
                    @change="handle_vid_hq1d1nkzf2_change"
                    :columns="vid_hq1d1nkzf2_columns"
                    :pagination="false"
                    row-key="id"
                    @resizeColumn="(w, col) => handleResizeColumn(w, col, 'vid_hq1d1nkzf2')"
                    :scroll="{ scrollToFirstRowOnChange: true, }"
                    :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped-even' : 'table-striped-odd')"
                  >
                    <template #headerCell="{ title, column }">
                      <TableHeaderCell :title="title" :column="column" />
                    </template>
                    <template #bodyCell="{ text, column, record, index }">
                      <!-- 序号列 -->
                      <template v-if="column && column.dataIndex === 'vid_hq1d1nkzf2_serialNumber'">
                        {{ index + 1 }}
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"项目名称"} 列内容 -->
                      <template v-if="column.dataIndex === 'projectName' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_hq1d1nkzf2_props.boundaryValueMap"
                          :dataSource="vid_hq1d1nkzf2_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"项目类型"} 列内容 -->
                      <template v-if="column.dataIndex === 'projectType' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_hq1d1nkzf2_props.boundaryValueMap"
                          :dataSource="vid_hq1d1nkzf2_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"工时投入数"} 列内容 -->
                      <template v-if="column.dataIndex === 'workHours' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_hq1d1nkzf2_props.boundaryValueMap"
                          :dataSource="vid_hq1d1nkzf2_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"人员投入数量"} 列内容 -->
                      <template v-if="column.dataIndex === 'personNumbers' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_hq1d1nkzf2_props.boundaryValueMap"
                          :dataSource="vid_hq1d1nkzf2_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                    </template>
                  </a-table>
                  <!-- end vid_hq1d1nkzf2 表格_k26mkp8e1r -->
                </template>
                <template v-else-if="checkCaseCondition(vid_t5g2fxyxpm_props?.selected.singleValue, 'NOT_EQUALS', -10)">
                  <!-- begin vid_i5jz948nfe 布局容器_vqkc3z32xl -->
                  <a-row class="vid_i5jz948nfe" :slots="'12:12'">
                    <a-col :span="12">
                      <!-- begin vid_ghl5u8b9mp 简单文本_t9x5jcoovd -->
                      <span class="vid_ghl5u8b9mp"> 员工列表 </span>
                      <!-- end vid_ghl5u8b9mp 简单文本_t9x5jcoovd -->
                    </a-col>
                    <a-col :span="12">
                      <!-- begin vid_cx2j4vhu5t 容器_clcva6zqur -->
                      <al-box class="vid_cx2j4vhu5t">
                        <!-- begin vid_h21x9zl9kx 按钮_0llsf1m6lj -->
                        <a-button class="vid_h21x9zl9kx" :type="'text'">
                          <template #icon><clock-circle-outlined /></template>
                        </a-button>
                        <!-- end vid_h21x9zl9kx 按钮_0llsf1m6lj -->
                        <!-- begin vid_rwv6wgfn2u 简单文本_zn0ztkf9sp -->
                        <span class="vid_rwv6wgfn2u"> 工时投入总数： </span>
                        <!-- end vid_rwv6wgfn2u 简单文本_zn0ztkf9sp -->
                        <!-- begin vid_h9th6upcjx 简单文本_gzwhtf0zw6 -->
                        <span class="vid_h9th6upcjx">
                          {{ renderStringInTemplate(vid_h9th6upcjx_props.rt_text) }}
                        </span>
                        <!-- end vid_h9th6upcjx 简单文本_gzwhtf0zw6 -->
                        <!-- begin vid_2qw7wj7vhe 工时导出 -->
                        <a-button class="vid_2qw7wj7vhe" @click="handle_vid_2qw7wj7vhe_click">
                          <template #icon><upload-outlined /></template>

                          工时导出
                        </a-button>
                        <!-- end vid_2qw7wj7vhe 工时导出 -->
                      </al-box>
                      <!-- end vid_cx2j4vhu5t 容器_clcva6zqur -->
                    </a-col>
                  </a-row>
                  <!-- end vid_i5jz948nfe 布局容器_vqkc3z32xl -->
                  <!-- begin vid_5ymmknwo2e 表格_443cs9mwzo -->
                  <!-- 表格_443cs9mwzo -->
                  <a-table
                    class="vid_5ymmknwo2e"
                    :bordered="true"
                    :editRowSaveLoading="vid_5ymmknwo2e_props.editRowSaveLoading"
                    :sorter="vid_5ymmknwo2e_props.sorter"
                    :currentRow="vid_5ymmknwo2e_props.currentRow"
                    :selectedRowList="vid_5ymmknwo2e_props.selectedRowList"
                    :data-source="vid_5ymmknwo2e_options()"
                    @change="handle_vid_5ymmknwo2e_change"
                    :columns="vid_5ymmknwo2e_columns"
                    :pagination="vid_5ymmknwo2e_pagination"
                    row-key="id"
                    @resizeColumn="(w, col) => handleResizeColumn(w, col, 'vid_5ymmknwo2e')"
                    :scroll="{ scrollToFirstRowOnChange: true, }"
                    :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped-even' : 'table-striped-odd')"
                  >
                    <template #headerCell="{ title, column }">
                      <TableHeaderCell :title="title" :column="column" />
                    </template>
                    <template #bodyCell="{ text, column, record, index }">
                      <!-- 序号列 -->
                      <template v-if="column && column.dataIndex === 'vid_5ymmknwo2e_serialNumber'">
                        {{ index + 1 }}
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"员工姓名"} 列内容 -->
                      <template v-if="column.dataIndex === 'userName' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_5ymmknwo2e_props.boundaryValueMap"
                          :dataSource="vid_5ymmknwo2e_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"工时投入数（小时）"} 列内容 -->
                      <template v-if="column.dataIndex === 'workHours' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_5ymmknwo2e_props.boundaryValueMap"
                          :dataSource="vid_5ymmknwo2e_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"项目工时投入占比（%）"} 列内容 -->
                      <template v-if="column.dataIndex === 'projectWorkHoursRatio' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_5ymmknwo2e_props.boundaryValueMap"
                          :dataSource="vid_5ymmknwo2e_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                      <!-- {"type":"value","dataType":"STRING","link":"","value":"个人工时投入占比（%）"} 列内容 -->
                      <template v-if="column.dataIndex === 'userWorkHoursRatio' && !column.customRender">
                        <text-table-cell
                          :rowData="record"
                          :conditionValueMap="vid_5ymmknwo2e_props.boundaryValueMap"
                          :dataSource="vid_5ymmknwo2e_props.contentDataSource[column.dataIndex]"
                          :columnsConfig="column"
                          :value="text"
                        />
                      </template>
                    </template>
                  </a-table>
                  <!-- end vid_5ymmknwo2e 表格_443cs9mwzo -->
                </template>
                <template v-else> </template>
              </div>
              <!-- end vid_0fb3krwsqw case_kibga05xdt -->
            </al-box>
            <!-- end vid_u31jzhb4wq 容器_lg84dxzptp -->
          </al-box>
          <!-- end vid_tbaf1blzmc 容器_pcbm7alx7b -->
        </a-col>
      </a-row>
      <!-- end vid_hofoolfsxh 布局容器_j7ks7ygx1q -->
    </a-spin>
  </div>
</template>
<script setup>
  import {
      h, ref, reactive, toRaw, markRaw, watch, computed,
      onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, onActivated, onDeactivated
    } from "vue";
    import { useRoute, useRouter } from 'vue-router';
    const router = useRouter();
    const route = useRoute();
    import { get, post, put, del, request, requestWithHeaders } from '@/utils/http/Axios';
    import { cloneDeep, localGet, merge, getDifferenceArray, traversalTreeStructure, checkCaseCondition, renderStringInTemplate, handleBreadcrumbJump, throttle, permission } from '@/utils/index';
    import { isNullOrEmpty, isEmptyArr, isNullOrUnDef, isContained, isArray, isEmpty, isObject } from '@/utils/is';
    import dayjs from 'dayjs';
    import { getPagePcChartsDataSourceConvert } from '@/utils/chart';
    import { message, notification, Modal } from 'ant-design-vue'
    import { propertyFormatByNumber, propertyFormatByPercentage, propertyFormatByDate } from '@/utils/format';
    
    import UserTableRecords from '@/model/UserTableRecords';
    import { getAppBaseUrl } from '@/utils/index';
    import { sendToken } from "@/hooks/useIframeToken";
    

  import { TreeSelect } from 'ant-design-vue';
  const SHOW_CHILD = TreeSelect.SHOW_CHILD;
  const SHOW_ALL = TreeSelect.SHOW_ALL;
  const SHOW_PARENT = TreeSelect.SHOW_PARENT;
  import TextTableCell from '@/components/page/tableCell/text.vue';
  import NumberTableCell from '@/components/page/tableCell/number.vue';
  import ProgressTableCell from '@/components/page/tableCell/progress.vue';
  import OptionsTableCell from '@/components/page/tableCell/options.vue';
  import DatePickerTableCell from '@/components/page/tableCell/datePicker.vue';
  import RangePickerTableCell from '@/components/page/tableCell/rangePicker.vue';
  import RangeNumberTableCell from '@/components/page/tableCell/rangeNumber.vue';
  import BoolTableCell from '@/components/page/tableCell/bool.vue';
  import TableHeaderCell from '@/components/page/TableHeaderCell.vue';

      // 获取传入的流程ID
      const props = defineProps({
        processInstanceId: {
            type: String
        }
      })
      const immediateWatch = (source, callback) => {
        watch(source, callback, {deep: true,immediate: true })
      }



  /* -------------------------- 属性定义 -------------------------- */

      const setTimeOutList = [];
      const pageLoading = reactive({
        loading: false,
        tip: undefined
      });
      const authInfo = localGet('app-user-store');

    const vid_lbww2v02oz_props = reactive({
          visible: false,
  })

    const vid_s7t3ge3zo2_props = reactive({
          formModel: {"h_cf5uc7jugp":"","f_7wnp4qndkl":"","o_yqcephte35":"","u_9p02rrl395":""},
  })

    const vid_3emijbqra1_props = reactive({
          showTime: undefined,
      value: "",
  })

    const vid_8pq5h8kjty_props = reactive({
          selected: {"label":[],"value":[],"option":[]},
      showCheckedStrategy: undefined,
      value: undefined,
  })

    const vid_fdfc042t11_props = reactive({
          value: undefined,
  })

    const vid_ekimywdomj_props = reactive({
          selected: {"label":[],"value":[],"option":[]},
      value: undefined,
  })

    const vid_6h2qv1wq73_props = reactive({
          formModel: {"q_82xlu1goty":""},
  })

    const vid_gv96gndjai_props = reactive({
          showTime: undefined,
      format: "YYYY-MM-DD",
      valueFormat: "YYYY-MM-DD",
      value: undefined,
      picker: "date",
  })

    const vid_0fb3krwsqw_props = reactive({
          caseValue: undefined,
  })

    const vid_hq1d1nkzf2_props = reactive({
          systemSort: [],
      sorter: {},
      editRowSaveLoading: {},
      currentRow: {"projectName":"","projectType":"","workHours":"","personNumbers":""},
      selectedRowList: {"workHours":[],"milepostName":[],"projectType":[],"projectWorkHours":[],"personNumbers":[],"actualWorkHours":[],"taskFinishTime":[],"custom3":[],"taskName":[],"custom1":[],"endTime":[],"custom2":[],"projectName":[],"taskStatus":[],"custom6":[]},
      totalNumber: undefined,
      rt_tableConfig: {"layout":{"showHeader":true,"sticky":false,"operationColumnFixed":"default"},"pagination":{"current":1,"pageSizeOptions":"10,20,30,40","enable":false,"showTotal":true,"hideOnSinglePage":false,"pageSize":"12","simple":false,"sync":true,"showQuickJumper":true,"showSizeChanger":false},"scroll":{"x":"","y":"","scrollToFirstRowOnChange":true},"style":{"contentStyle":{"borderColor":"#D9D9D9","enableContentStyle":true,"fontFamily":"arial, helvetica, \"microsoft yahei\";","lintHeight":40,"borderWidth":1,"evenLineBackColor":"#F8FAFC","textWeight":"400","fontSize":14,"oddLineBackColor":"#FFFFFF","textColor":"#262626"},"paginationStyle":{"layout":"bottomRight","size":"default"},"headerStyle":{"borderColor":"#D9D9D9","backgroundColor":"#3875FF","fontFamily":"arial, helvetica, \"microsoft yahei\";","lintHeight":40,"borderWidth":1,"textWeight":"600","fontSize":14,"enableTextStyle":true,"textColor":"#FFFFFF"}},"basic":{"rowSelection":false,"rowEdit":{"cancelText":"取消","editText":"编辑","saveText":"保存"},"title":"","showSequenceNumber":false,"rowKey":"id"}},
      columnList: [
          {
            id: 'qb7n1kdnsp',
            dataIndex: 'projectName',
            headerComment: false,
            title: '项目名称',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'se0ratcavd',
            dataIndex: 'projectType',
            headerComment: false,
            title: '项目类型',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'waqlaeugcd',
            dataIndex: 'workHours',
            headerComment: false,
            title: '工时投入数',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'ye37k8r9ut',
            dataIndex: 'personNumbers',
            headerComment: false,
            title: '人员投入数量',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },

        ],
      rawColumnList: [],
      // 进行行合并所需的排序规则，必须将其加到排序字段的前面，以实现合并单元格
      rowMergeSort: [
        { order: 'projectName', direction: 'ASC' },
      ],
      // 完整的排序规则：需要将行合并的排序规则和排序字段的排序规则赋给该属性；调接口时会使用其作为排序条件
      systemSort: [
        { order: 'projectName', direction: 'ASC' },
      ],
      // 条件格式需要的边界值映射：key为边界值id，value为边界值数据
      boundaryValueMap: {},
      // 表格单元格内容渲染需要的外部数据源：key为列，value为该列单元格的外部数据源配置
      contentDataSource: {},
  })

    const vid_h9th6upcjx_props = reactive({
          rt_text: undefined,
  })

    const vid_5ymmknwo2e_props = reactive({
          systemSort: [],
      sorter: {},
      editRowSaveLoading: {},
      currentRow: {"userName":"","workHours":"","projectWorkHoursRatio":"","userWorkHoursRatio":""},
      selectedRowList: {"workHours":[],"milepostName":[],"projectWorkHours":[],"userWorkHoursRatio":[],"userName":[],"projectWorkHoursRatio":[],"actualWorkHours":[],"taskFinishTime":[],"custom3":[],"custom4":[],"taskName":[],"custom1":[],"endTime":[],"custom2":[],"projectName":[],"taskStatus":[],"custom6":[]},
      totalNumber: undefined,
      rt_tableConfig: {"layout":{"showHeader":true,"sticky":false,"operationColumnFixed":"default"},"pagination":{"current":1,"pageSizeOptions":"10,20,30,40","enable":true,"showTotal":true,"hideOnSinglePage":false,"pageSize":"15","simple":false,"sync":true,"showQuickJumper":true,"showSizeChanger":false},"scroll":{"x":"","y":"","scrollToFirstRowOnChange":true},"style":{"contentStyle":{"borderColor":"#D9D9D9","enableContentStyle":true,"fontFamily":"arial, helvetica, \"microsoft yahei\";","lintHeight":40,"borderWidth":1,"evenLineBackColor":"#F8FAFC","textWeight":"400","fontSize":14,"oddLineBackColor":"#FFFFFF","textColor":"#262626"},"paginationStyle":{"layout":"bottomRight","size":"default"},"headerStyle":{"borderColor":"#D9D9D9","backgroundColor":"#3875FF","fontFamily":"arial, helvetica, \"microsoft yahei\";","lintHeight":40,"borderWidth":1,"textWeight":"600","fontSize":14,"enableTextStyle":true,"textColor":"#FFFFFF"}},"basic":{"rowSelection":false,"rowEdit":{"cancelText":"取消","editText":"编辑","saveText":"保存"},"title":"","showSequenceNumber":false,"rowKey":"id"}},
      columnList: [
          {
            id: 'q7eal3r6nn',
            dataIndex: 'userName',
            headerComment: false,
            title: '员工姓名',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'pequ3ofmnv',
            dataIndex: 'workHours',
            headerComment: false,
            title: '工时投入数（小时）',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'clitibjsd7',
            dataIndex: 'projectWorkHoursRatio',
            headerComment: false,
            title: '项目工时投入占比（%）',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },
          {
            id: 'f0a5i1us5v',
            dataIndex: 'userWorkHoursRatio',
            headerComment: false,
            title: '个人工时投入占比（%）',
            ellipsis: false,
            headerOverflow: 'ellipsis',
            contentAlign: 'left',
            customHeaderCell: () => ({ style: { 'text-align': 'left' } }),
            rowEdit: false,
            rowEditConditions: [],
            contentType: 'TEXT',
            contentConfig: {"conditionStyle":[],"boolConfig":"collection"},
            // 使用插槽的列，设置单元格padding为0，padding样式在内容插槽中已加，以便内容插槽设置背景色时可以占满整个单元格；该样式会在计算属性生成列配置时加入customCell
            customCellStyle: { padding: 0 },
            resizable: true,
          },

        ],
      rawColumnList: [],
      // 进行行合并所需的排序规则，必须将其加到排序字段的前面，以实现合并单元格
      rowMergeSort: [],
      // 完整的排序规则：需要将行合并的排序规则和排序字段的排序规则赋给该属性；调接口时会使用其作为排序条件
      systemSort: [],
      // 条件格式需要的边界值映射：key为边界值id，value为边界值数据
      boundaryValueMap: {},
      // 表格单元格内容渲染需要的外部数据源：key为列，value为该列单元格的外部数据源配置
      contentDataSource: {},
  })

    const vid_kjy9opxgxl_props = reactive({
          value: undefined,
  })

    const vid_t5g2fxyxpm_props = reactive({
          lazyParams: undefined,
      selected: {"singleValue":"","title":[],"value":[],"option":[],"singleLabel":""},
      clickNode: {"nodeTitle":"","nodeKey":"","nodeParentKey":""},
      checkedKeys: [],
      selectedKeys: [],
      expandedKeys: [],
  })
  // ---------------------------- 定义模型数据 ----------------------------

    const t_fcujslcgtn = reactive({"h_cf5uc7jugp":""})


    const r_u5l4887ms8 = reactive({})

    // ============================ 定义模型数据 ============================




    const t_fcujslcgtn_rules = reactive({
          h_cf5uc7jugp: [
          { required: true, message: '请选择日期!', trigger: 'blur' },
      ],

      o_yqcephte35: [
          { required: true, message: '请选择工时天数!', trigger: 'blur' },
      ],
      u_9p02rrl395: [
          { required: true, message: '请选择工时天数!', trigger: 'blur' },
      ],
    })



    const r_u5l4887ms8_rules = reactive({

    })


      // 处理校验
      const setSubFormName =(parentInfo, name)=>{
        return [parentInfo.parents, parentInfo.cycleIndex, name];
      }


    const vid_8pq5h8kjty_options_raw = ref([])

      const vid_8pq5h8kjty_options = computed(() => {
            return () => vid_8pq5h8kjty_options_raw.value
          })



    const vid_ekimywdomj_options_raw = ref([{"disabled":false,"label":"是","value":"1"},{"disabled":false,"label":"否","value":"2"}])

      const vid_ekimywdomj_options = computed(() => {
            return () => vid_ekimywdomj_options_raw.value
          })



    const vid_hq1d1nkzf2_options_raw = ref([])

      const vid_hq1d1nkzf2_options = computed(() => {
        return () => vid_hq1d1nkzf2_options_raw.value
      })



    const vid_5ymmknwo2e_options_raw = ref([])

      const vid_5ymmknwo2e_options = computed(() => {
        return () => vid_5ymmknwo2e_options_raw.value
      })



    const vid_t5g2fxyxpm_options_raw = ref([])

      const vid_t5g2fxyxpm_options = computed(() => {
            return () => vid_t5g2fxyxpm_options_raw.value
          })

  // 图表组件 下拉树_72sr0egjmf 条件格式数据依赖
  const vid_8pq5h8kjty_chartConditionDependencyMap = ref({
  })
  // 图表组件 单选按钮组_j6qe6kpofu 条件格式数据依赖
  const vid_ekimywdomj_chartConditionDependencyMap = ref({
  })
  // 图表组件 表格_k26mkp8e1r 条件格式数据依赖
  const vid_hq1d1nkzf2_chartConditionDependencyMap = ref({
  })
  // 图表组件 表格_443cs9mwzo 条件格式数据依赖
  const vid_5ymmknwo2e_chartConditionDependencyMap = ref({
  })
  // 图表组件 绩效管理树形控件 条件格式数据依赖
  const vid_t5g2fxyxpm_chartConditionDependencyMap = ref({
  })
  /* ========================== 属性定义 ========================== */


  /* -------------------------- 元素数据引用 -------------------------- */


  /* ========================== 元素数据引用 ========================== */


  /* -------------------------- 页面数据 -------------------------- */

    // 页面数据 人效分析列表(树关联)
    const dataConnector_conn_35gx6h5vfe_response = ref();
    const dataConnector_conn_35gx6h5vfe = async (additionParams = {}) => {
        const exec = async () => {

          // 获取参数
          const params = {
            orderType: undefined,
          beginTimeOption: undefined,
          dateButtonType: undefined,
          dateOption: r_u5l4887ms8.q_82xlu1goty,
          pageSize: undefined,
          updateTime: undefined,
          sort: undefined,
          updateById: undefined,
          endTimeOption: undefined,
          createdBy: undefined,
          updateBy: undefined,
          pageNo: undefined,
          name: vid_t5g2fxyxpm_props?.selected.singleLabel,
          createdTime: undefined,
          id: undefined,
          orderField: undefined,
          projectName: undefined,
          projectId: vid_k06uf5vq7e_props?.selected.value,
          createdById: undefined,
          taskStatus: vid_ennzkdg25n_props?.selected.value
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }
          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/performanceManagement/humanAnalysis/list';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params).then(async (resp) => {
            dataConnector_conn_35gx6h5vfe_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 部门树
    const dataConnector_conn_f8w4behb5i_response = ref();
    const dataConnector_conn_f8w4behb5i = async (additionParams = {}) => {
        const exec = async () => {

          // 获取参数
          const params = {

          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }
          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/work-management/tree';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params).then(async (resp) => {
            dataConnector_conn_f8w4behb5i_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 项目工时统计top10
    const dataConnector_conn_ynn4xiwycm_response = ref();
    const dataConnector_conn_ynn4xiwycm = async (additionParams = {}) => {
        const exec = async () => {

          // 获取参数
          const params = {
            monthRange: r_u5l4887ms8.q_82xlu1goty,
          projectId: vid_t5g2fxyxpm_props?.selected.singleValue
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }
          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/pfm/query/project_staticstic_top_ten';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params).then(async (resp) => {
            dataConnector_conn_ynn4xiwycm_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 项目工时统计人员列表
    const dataConnector_conn_520tvn7bvw_response = ref();
    const dataConnector_conn_520tvn7bvw = async (additionParams = {}) => {
        const exec = async () => {

          // 获取参数
          const params = {
            monthRange: r_u5l4887ms8.q_82xlu1goty,
          projectId: vid_t5g2fxyxpm_props?.selected.singleValue
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }
          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/pfm/query/project_user_list';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params).then(async (resp) => {
            dataConnector_conn_520tvn7bvw_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }


    // 页面数据 工时统计项目树
    const dataConnector_conn_qf1efzbk7i_response = ref();
    const dataConnector_conn_qf1efzbk7i = async (additionParams = {}) => {
        const exec = async () => {

          // 获取参数
          const params = {
            projectName: vid_kjy9opxgxl_props?.value
          };

          // 注入附加的参数
          try {
            merge(params, additionParams);
          } catch (error) {
            console.log(error)
          }
          // 判断加载提示

          // 处理URL
          let url = '/solution-ppm/api/v2/built-in-system-ppm/pfm/query/project_tree';
          // 替换url中的变量

          // 排除空参数  日期组件重置后的空参数是[null] 或者[undefined]
          Object.keys(params).forEach(key=>{ if(params[key] === null){ delete params[key] }else if( Object.prototype.toString.call(params[key]) === '[object Object]' ){ Object.keys(params[key]).forEach(childKey=>{ if(params[key][childKey] === null || (Array.isArray(params[key][childKey]) && params[key][childKey].length === 1 && isNullOrUnDef(params[key][childKey]?.[0]))){ delete params[key][childKey] }}) } });
          return post(url, params).then(async (resp) => {
            dataConnector_conn_qf1efzbk7i_response.value = resp;

            return resp;
          }).catch(async (e) => {


            return Promise.reject(e);
          }).finally(async () => {


          })
        }

          return await exec()

    }

  /* ========================== 页面数据 ========================== */


  /* -------------------------- 响应 -------------------------- */

  /* ========================== 响应 ========================== */


  /* -------------------------- 函数 -------------------------- */

    // 自定义函数 工时导出
    const customFunction_h86hjoxuux = async (...params) => {
      function downloadExcel(response, name) {
                  const blob = new Blob([response], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8' });
                  const downloadElement = document.createElement('a');
                  const href = window.URL.createObjectURL(blob);// 创建下载的链接
                  downloadElement.href = href;
                  downloadElement.download = name; // 下载后文件名
                  document.body.appendChild(downloadElement);
                  downloadElement.click(); // 点击下载
                  document.body.removeChild(downloadElement); // 下载完成移除元素
                  window.URL.revokeObjectURL(href);
                  return href;
          }
          const exporParams = {
                  days: t_fcujslcgtn.o_yqcephte35,
                  date: t_fcujslcgtn.h_cf5uc7jugp,
                  departmentList:t_fcujslcgtn.f_7wnp4qndkl,
            			emailFlag:t_fcujslcgtn.u_9p02rrl395
          }
          post(`/solution-ppm/api/v2/built-in-system-ppm/work-management/export`, exporParams, { responseType: 'arraybuffer', }).then(res => {
                  downloadExcel(res, '工时统计.xlsx')
          })
    }


    // 自定义函数 获取上个月
    const customFunction_b1gdfcyakn =  (...params) => {
        let tYear = new Date().getFullYear()
  let nowMonth = new Date().getMonth()  // 当前月
  console.log(nowMonth,'1111')
  let firstDayOfThisMonth = new Date(tYear, nowMonth, 1)
  let firstDayOfLastMonth = new Date(tYear, nowMonth - 1, 1)
  let lastDayOfLastMonth = new Date(firstDayOfThisMonth.getTime() - 86400000)
  firstDayOfLastMonth = dayjs(firstDayOfLastMonth).format('YYYY-MM-DD')
  lastDayOfLastMonth = dayjs(lastDayOfLastMonth).format('YYYY-MM-DD')
  vid_gv96gndjai_props.value = [firstDayOfLastMonth, lastDayOfLastMonth]
    }

  /* ========================== 函数 ========================== */


  /* -------------------------- 页面参数 -------------------------- */

    const pageParameter_state = reactive({
        'processInstanceId': props.processInstanceId ?? route.query.processInstanceId,
    })

  /* ========================== 页面参数 ========================== */


  /* -------------------------- 组件事件处理方法 -------------------------- */

    // ---------------------------- 组件数据同步 ----------------------------
    // 处理 下拉树_72sr0egjmf 的 systemList 属性关联
  watch(() => dataConnector_conn_f8w4behb5i_response?.value?.data,
    () => { vid_8pq5h8kjty_options_raw.value = dataConnector_conn_f8w4behb5i_response?.value?.data; },
    {deep: true})
  // 处理 case_kibga05xdt 的 caseValue 属性关联
  immediateWatch(
    () => vid_t5g2fxyxpm_props?.selected.singleValue,
    () => { vid_0fb3krwsqw_props.caseValue = vid_t5g2fxyxpm_props?.selected.singleValue; }
  )
  // 处理 表格_k26mkp8e1r 的 systemList 属性关联
  watch(() => dataConnector_conn_ynn4xiwycm_response?.value?.data,
    () => { vid_hq1d1nkzf2_options_raw.value = dataConnector_conn_ynn4xiwycm_response?.value?.data; },
    {deep: true})
  // 处理 简单文本_gzwhtf0zw6 的 rt_text 属性关联
  watch(() => dataConnector_conn_520tvn7bvw_response?.value?.data?.projectTotalWorkHours,
    () => { vid_h9th6upcjx_props.rt_text = dataConnector_conn_520tvn7bvw_response?.value?.data?.projectTotalWorkHours; },
    {deep: true})
  // 处理 表格_443cs9mwzo 的 systemList 属性关联
  watch(() => dataConnector_conn_520tvn7bvw_response?.value?.data?.projectUserStaticsticDtoList,
    () => { vid_5ymmknwo2e_options_raw.value = dataConnector_conn_520tvn7bvw_response?.value?.data?.projectUserStaticsticDtoList; },
    {deep: true})
  // 处理 绩效管理树形控件 的 systemList 属性关联
  watch(() => dataConnector_conn_qf1efzbk7i_response?.value?.data,
    () => { vid_t5g2fxyxpm_options_raw.value = dataConnector_conn_qf1efzbk7i_response?.value?.data; },
    {deep: true})
    // ============================ 组件数据同步 ============================

  /**
  * 处理元素 对话框 的 cancel 事件
  */
  let handle_vid_lbww2v02oz_cancel = throttle(async (...params) => {
  vid_lbww2v02oz_props.visible = false;
  }, 500)
  /**
  * 处理元素 对话框 的 ok 事件
  */
  let handle_vid_lbww2v02oz_ok = throttle(async (...params) => {
  await customFunction_h86hjoxuux();
  vid_lbww2v02oz_props.visible = false;
  }, 500)
  /**
  * 处理元素 下拉树 的 dropdownVisibleChange 事件
  */
  let handle_vid_8pq5h8kjty_dropdownVisibleChange = throttle(async (...params) => {
  await dataConnector_conn_f8w4behb5i()
  }, 500)
  /**
  * 处理元素 下拉树 的 change 事件
  */
  let handle_vid_8pq5h8kjty_change = throttle(async (...params) => {
  const [value, label] = params;
  console.log(value, label)
  vid_8pq5h8kjty_props.selected.label = label;
  vid_8pq5h8kjty_props.selected.value = value;
  vid_8pq5h8kjty_props.selected.option = label.map((item, index) => ({
  label: item,
  value: value[index] ? value[index] : value,
  }));
  }, 500)
  /**
  * 处理元素 单选按钮组 的 change 事件
  */
  let handle_vid_ekimywdomj_change = throttle(async (...params) => {
  const [e] = params;
  vid_ekimywdomj_props.selected.label = vid_ekimywdomj_options.value().find(item => item.value == e.target.value).label;
  vid_ekimywdomj_props.selected.value = e.target.value;
  vid_ekimywdomj_props.selected.option = vid_ekimywdomj_options.value().find(item => item.value == e.target.value);
  }, 500)
  /**
  * 处理元素 按钮 的 click 事件
  */
  let handle_vid_m4igum3zuw_click = throttle(async (...params) => {
  await dataConnector_conn_520tvn7bvw()
  await dataConnector_conn_ynn4xiwycm()
  }, 500)
  /**
  * 处理元素 按钮 的 click 事件
  */
  let handle_vid_svfcotts7a_click = throttle(async (...params) => {
  }, 500)
  /**
  * 处理元素 日期区间 的 change 事件
  */
  let handle_vid_gv96gndjai_change = throttle(async (...params) => {
  await dataConnector_conn_35gx6h5vfe()
  }, 500)
  /**
  * 处理元素 表格 的 change 事件
  */
  let handle_vid_hq1d1nkzf2_change = throttle(async (...params) => {
  // 处理分页器相关数据
  const [pagination, filters, sorter] = params;
  const { current, pageSize } = pagination;
  vid_hq1d1nkzf2_props.rt_tableConfig.pagination.current = current;
  vid_hq1d1nkzf2_props.rt_tableConfig.pagination.pageSize = pageSize;
  // 处理排序相关数据
  const { field, order } = sorter;
  const sorterList = [...vid_hq1d1nkzf2_props.rowMergeSort];
  let sorterValue = {};
  if (order === 'descend') {
  sorterValue = { order: field, direction: 'DESC' }
  } else if (order === 'ascend') {
  sorterValue = { order: field, direction: 'ASC' }
  }
  sorterList.push(sorterValue);
  vid_hq1d1nkzf2_props.systemSort = sorterList;
  vid_hq1d1nkzf2_props.sorter = sorterValue;
  }, 500)
  /**
  * 处理元素 按钮 的 click 事件
  */
  let handle_vid_2qw7wj7vhe_click = throttle(async (...params) => {
  vid_lbww2v02oz_props.visible = true;
  }, 500)
  /**
  * 处理元素 表格 的 change 事件
  */
  let handle_vid_5ymmknwo2e_change = throttle(async (...params) => {
  // 处理分页器相关数据
  const [pagination, filters, sorter] = params;
  const { current, pageSize } = pagination;
  vid_5ymmknwo2e_props.rt_tableConfig.pagination.current = current;
  vid_5ymmknwo2e_props.rt_tableConfig.pagination.pageSize = pageSize;
  // 处理排序相关数据
  const { field, order } = sorter;
  const sorterList = [...vid_5ymmknwo2e_props.rowMergeSort];
  let sorterValue = {};
  if (order === 'descend') {
  sorterValue = { order: field, direction: 'DESC' }
  } else if (order === 'ascend') {
  sorterValue = { order: field, direction: 'ASC' }
  }
  sorterList.push(sorterValue);
  vid_5ymmknwo2e_props.systemSort = sorterList;
  vid_5ymmknwo2e_props.sorter = sorterValue;
  }, 500)
  /**
  * 处理元素 输入框 的 change 事件
  */
  let handle_vid_kjy9opxgxl_change = throttle(async (...params) => {
  await dataConnector_conn_qf1efzbk7i()
  }, 500)
  /**
  * 处理元素 树形控件 的 select 事件
  */
  let handle_vid_t5g2fxyxpm_select = throttle(async (...params) => {
  const [selectedKeys, e] = params;
  const { selectedNodes = [], node = {} } = e, [singleValue] = selectedKeys, [singleNode] = selectedNodes;
  const { parent = {} } = node;
  vid_t5g2fxyxpm_props.selected.title = selectedNodes.map((item) => item.projectName) ?? [];
  vid_t5g2fxyxpm_props.selected.value = selectedKeys;
  vid_t5g2fxyxpm_props.selected.option = selectedNodes;
  vid_t5g2fxyxpm_props.selected.singleValue = singleValue;
  vid_t5g2fxyxpm_props.selected.singleLabel = singleNode?.title ?? '';
  // 存储树节点数据
  vid_t5g2fxyxpm_props.clickNode.nodeParentKey = parent?.key ?? node?.key ?? '';
  vid_t5g2fxyxpm_props.clickNode.nodeKey = node?.key ?? '';
  vid_t5g2fxyxpm_props.clickNode.nodeTitle = node?.title ?? '';
  customFunction_b1gdfcyakn();
  await dataConnector_conn_ynn4xiwycm()
  await dataConnector_conn_520tvn7bvw()
  }, 500)
  /* ========================== 组件事件处理方法 ========================== */


  /* -------------------------- 生命周期 -------------------------- */
  onMounted(() => { ;dataConnector_conn_qf1efzbk7i()

    });

    onUnmounted(() => {
      // 销毁定时器
      setTimeOutList.forEach(({ repeat, timer }) => {
        repeat ?  clearInterval(timer): clearTimeout(timer);
      });
    });

  /* ========================== 生命周期 ========================== */


  /* -------------------------- 数据关联处理 -------------------------- */





  /* -------------------------- 表单数据同步 -------------------------- */
  /* ========================== 表单数据同步 ========================== */

  /* ========================== 数据关联处理 ========================== */


  /* -------------------------- 不同组件自定义的处理逻辑 -------------------------- */
  onMounted(() => {
    const rawColumnList = []
    traversalTreeStructure(vid_hq1d1nkzf2_props.columnList, (node) => {
      if (node.type === 'column') {
        rawColumnList.push(node)
      }
    });
    
    // 获取缓存的表格列宽度，处理列宽信息
    UserTableRecords.getTableRecords(localGet('al__UID')).then((res) => {
      const columnWidthMap = res['vid_hq1d1nkzf2'] ?? {};
      rawColumnList.map((column) => {
        if(columnWidthMap[column.dataIndex]) {
          column.width = columnWidthMap[column.dataIndex]
        }
      })
    });
    
    vid_hq1d1nkzf2_props.rawColumnList = rawColumnList;
  })
  // 生成表格列：相同分组的数据需要合并单元格
  const vid_hq1d1nkzf2_columns = computed(() => {
    // 需要合并单元格的列
    const groupKeys = ['projectName'];

    // 将表头配置按照groupTitle字段进行分组，以实现多级表头
    const columnList = [...vid_hq1d1nkzf2_props.columnList];

    function formatColumns(columns) {
      columns.forEach(item => {
        const { dataIndex, contentAlign, children, customCellStyle } = item;
        // 如果当前列是分组列，则递归处理它的子列，当前列本身不作处理
        if (!dataIndex && children && children.length) {
          formatColumns(children);
          return;
        }

        const groupIndex = groupKeys.findIndex(item => item === dataIndex);
        // 如果当前字段属于分组字段，则给它添加合并单元格的配置，否则直接返回
        if (groupIndex === -1) {
          item.customCell = (record, index) => {
            return { style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        } else {
          item.customCell = (record, index) => {
            const rowGroupKeys = groupKeys.slice(0, groupIndex + 1);
            const rowSpanList = generateRowSpanList(vid_hq1d1nkzf2_options.value(), rowGroupKeys,vid_hq1d1nkzf2_props.editRecordMap);
            return { rowSpan: rowSpanList[index], style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        }
      })
    }

    // 格式化column：增加合并单元格的配置，以及自定义样式
    formatColumns(columnList);

    return columnList;
  });


    // 表格分页器信息：将总条数信息加到基础分页信息中
    const vid_hq1d1nkzf2_pagination = computed(() => {
      const { totalNumber, rt_tableConfig } = vid_hq1d1nkzf2_props;
      const {
        enable = true,
        current= 1,
        pageSize= 10,
        showSizeChanger= false,
        pageSizeOptions= '10,20,30,40',
        showTotal= false,
        showQuickJumper= false,
        simple= false,
        hideOnSinglePage= false,
      } = rt_tableConfig.pagination ?? {};
      const { size = 'default', layout='bottomRight' } = rt_tableConfig?.style?.paginationStyle || {}
      let info = {};
      if(enable) {
        info = {
          total: totalNumber || 0,
          pageSize,
          size,
          simple,
          current,
          showSizeChanger,
          pageSizeOptions: pageSizeOptions.split(','),
          showQuickJumper,
          hideOnSinglePage,
          position: [layout],
        }
        if(showTotal) {
          info.showTotal = (total, range) => `共${total}个项目，第${current}/${Math.ceil(total / pageSize)}页`
        }
        return info;
      }
      return false;
    })


        // 补充一个watch，用于监听删除最后一页最后一条数据的情况，然后重新加载数据
        watch(() => dataConnector_conn_ynn4xiwycm_response?.value?.data, (newValue) => {
          const current = vid_hq1d1nkzf2_props.rt_tableConfig.pagination.current;
          if (!newValue?.length && current > 1) {
            vid_hq1d1nkzf2_props.rt_tableConfig.pagination.current = current - 1;
            dataConnector_conn_ynn4xiwycm();
          }
        });
  onMounted(() => {
    const rawColumnList = []
    traversalTreeStructure(vid_5ymmknwo2e_props.columnList, (node) => {
      if (node.type === 'column') {
        rawColumnList.push(node)
      }
    });
    
    // 获取缓存的表格列宽度，处理列宽信息
    UserTableRecords.getTableRecords(localGet('al__UID')).then((res) => {
      const columnWidthMap = res['vid_5ymmknwo2e'] ?? {};
      rawColumnList.map((column) => {
        if(columnWidthMap[column.dataIndex]) {
          column.width = columnWidthMap[column.dataIndex]
        }
      })
    });
    
    vid_5ymmknwo2e_props.rawColumnList = rawColumnList;
  })
  // 生成表格列：相同分组的数据需要合并单元格
  const vid_5ymmknwo2e_columns = computed(() => {
    // 需要合并单元格的列
    const groupKeys = [];

    // 将表头配置按照groupTitle字段进行分组，以实现多级表头
    const columnList = [...vid_5ymmknwo2e_props.columnList];

    function formatColumns(columns) {
      columns.forEach(item => {
        const { dataIndex, contentAlign, children, customCellStyle } = item;
        // 如果当前列是分组列，则递归处理它的子列，当前列本身不作处理
        if (!dataIndex && children && children.length) {
          formatColumns(children);
          return;
        }

        const groupIndex = groupKeys.findIndex(item => item === dataIndex);
        // 如果当前字段属于分组字段，则给它添加合并单元格的配置，否则直接返回
        if (groupIndex === -1) {
          item.customCell = (record, index) => {
            return { style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        } else {
          item.customCell = (record, index) => {
            const rowGroupKeys = groupKeys.slice(0, groupIndex + 1);
            const rowSpanList = generateRowSpanList(vid_5ymmknwo2e_options.value(), rowGroupKeys,vid_5ymmknwo2e_props.editRecordMap);
            return { rowSpan: rowSpanList[index], style: { 'text-align': contentAlign, ...(customCellStyle || {}) } };
          };
        }
      })
    }

    // 格式化column：增加合并单元格的配置，以及自定义样式
    formatColumns(columnList);

    return columnList;
  });


    // 表格分页器信息：将总条数信息加到基础分页信息中
    const vid_5ymmknwo2e_pagination = computed(() => {
      const { totalNumber, rt_tableConfig } = vid_5ymmknwo2e_props;
      const {
        enable = true,
        current= 1,
        pageSize= 10,
        showSizeChanger= false,
        pageSizeOptions= '10,20,30,40',
        showTotal= false,
        showQuickJumper= false,
        simple= false,
        hideOnSinglePage= false,
      } = rt_tableConfig.pagination ?? {};
      const { size = 'default', layout='bottomRight' } = rt_tableConfig?.style?.paginationStyle || {}
      let info = {};
      if(enable) {
        info = {
          total: totalNumber || 0,
          pageSize,
          size,
          simple,
          current,
          showSizeChanger,
          pageSizeOptions: pageSizeOptions.split(','),
          showQuickJumper,
          hideOnSinglePage,
          position: [layout],
        }
        if(showTotal) {
          info.showTotal = (total, range) => `共${total}个项目，第${current}/${Math.ceil(total / pageSize)}页`
        }
        return info;
      }
      return false;
    })


        // 补充一个watch，用于监听删除最后一页最后一条数据的情况，然后重新加载数据
        watch(() => dataConnector_conn_520tvn7bvw_response?.value?.data?.projectUserStaticsticDtoList, (newValue) => {
          const current = vid_5ymmknwo2e_props.rt_tableConfig.pagination.current;
          if (!newValue?.length && current > 1) {
            vid_5ymmknwo2e_props.rt_tableConfig.pagination.current = current - 1;
            dataConnector_conn_520tvn7bvw();
          }
        });
  const vid_t5g2fxyxpm_stopWatchExpandedKeys = watch(
    () => vid_t5g2fxyxpm_options_raw.value,
    () => {

      traversalTreeStructure(vid_t5g2fxyxpm_options_raw.value, (item) => {
        vid_t5g2fxyxpm_props.expandedKeys.push(item.projectId);
      });

      vid_t5g2fxyxpm_stopWatchExpandedKeys()
    }
  );
  /**
   * 生成分组字段合并单元格的配置：返回值为一个数字数组，数组里面每一项即为该字段当前行的rowSpan配置
   * @param {Array} 表格中的数据
   * @param {Array} 当前分组字段的列表，注：为了保证优先级低的字段合并后是优先级高的字段合并后的子集，需要把比该字段优先级高的分组字段按顺序放在该字段前面；例如：所有分组字段列表为['grade', 'age', 'score']，要生成age字段的合并单元格配置，则该参数需要传['grade', 'age']
   * @returns {Array} 该字段合并单元格的rowSpan配置，例：[1, 1, 2, 0, 1]
   */
  function generateRowSpanList(dataSource, groupKeys,editRecordMap) {
    if (!dataSource || !dataSource.length) {
      return [];
    }

    const rowSpanList = [];

    // 判断单元格是否需要合并的临时值：使用表格数据最后一行进行初始化（表格数据的遍历是倒序进行的）
    let tempValue = getGroupValue(dataSource[dataSource.length - 1], groupKeys);
    // 记录需要合并单元格的数量
    let tempValueCount = 0;

    // 倒序遍历数组，以保证使用最前面一条数据合并单元格
    for (let index = dataSource.length - 1; index >= 0; index--) {
      rowSpanList[index] = 0;
      const groupValue = getGroupValue(dataSource[index], groupKeys);
      // 如果当前行的分组数据跟上一行一致，则将标记数量加一；否则将标记数量的当前值赋给上一条数据，并重置临时值和标记数量
      if(editRecordMap && editRecordMap[index]){ //如果当前行是编辑行
        rowSpanList[index + 1] = tempValueCount;
        tempValue = "";
        tempValueCount=1;
      }
      else if (groupValue === tempValue) {
        tempValueCount++;
      } else {
        rowSpanList[index + 1] = tempValueCount;
        tempValue = groupValue;
        tempValueCount = 1;
      }

      // 遍历到最后一行，将当前的标记数量赋给当前行
      if (index === 0) {
        rowSpanList[index] = tempValueCount;
      }
    }

    return rowSpanList;
  }

  /**
   * 根据分组字段列表生成当前数据行的分组值
   * @param {Object} 当前数据行
   * @param {Array} 分组字段列表
   * @returns {String} 拼装的当前数据行的分组值，例：record为{ age: 7, grade: '一年级', name: '小赵' }，groupKeys为['grade', 'age']，则拼装后的返回值为'一年级__$__7'
   */
  function getGroupValue(record, groupKeys) {
    const groupValueList = [];
    groupKeys.forEach(groupKey => {
      groupValueList.push(`${record[groupKey]}`);
    });

    return groupValueList.join('__$__');
  }

  /**
   * 将列表数据转换成树状数据
   * @param {Array} 原始的列表数据
   * @param {String|Number} 列表数据的唯一key
   * @param {String|Number} 列表数据转成树时的父级id
  */
  function convertListToTree(list, key, parentKey) {
    const clonedList = cloneDeep(list || []);

    // 遍历列表数据，生成树节点的map：key为列表数据的唯一key，value为列表当前行的数据
    const treeNodeMap = {};
    clonedList.forEach(item => {
      treeNodeMap[item[key]] = item;
    });

    const treeDataList = [];
    clonedList.forEach(item => {
      // 如果当前行数据的父级id不在树节点的map中，则当前数据为根节点数据，将其加入最终树形数据的列表；否则将其放入其父节点数据的children中
      if (!treeNodeMap[item[parentKey]]) {
        treeDataList.push(item);
      } else {
        if (!treeNodeMap[item[parentKey]].children) {
          treeNodeMap[item[parentKey]].children = [];
        }
        treeNodeMap[item[parentKey]].children.push(item);
      }
    });

    return treeDataList;
  }

  /**
   * 表格列宽伸缩处理，使用indexedDB缓存伸缩后的列宽度
   */
  const handleResizeColumn = (w, col, vid) => {
    col.width = w;
    
    UserTableRecords.saveTableRecords(col, localGet('al__UID'), vid)
    
  }
  /* ========================== 不同组件自定义的处理逻辑 ========================== */


  // ================================定制化逻辑========================================
  function getNow(date) {
        let today = new Date()
        today = dayjs(today).format('YYYY-MM-DD')
        vid_gv96gndjai_props.value = [date, today]
      }
    let tYear = new Date().getFullYear()
  let nowMonth = new Date().getMonth()  // 当前月
  console.log(nowMonth,'1111')
  let firstDayOfThisMonth = new Date(tYear, nowMonth, 1)
  let firstDayOfLastMonth = new Date(tYear, nowMonth - 1, 1)
  let lastDayOfLastMonth = new Date(firstDayOfThisMonth.getTime() - 86400000)
  firstDayOfLastMonth = dayjs(firstDayOfLastMonth).format('YYYY-MM-DD')
  lastDayOfLastMonth = dayjs(lastDayOfLastMonth).format('YYYY-MM-DD')
  console.log(firstDayOfLastMonth,lastDayOfLastMonth)
  r_u5l4887ms8.q_82xlu1goty = [firstDayOfLastMonth, lastDayOfLastMonth]
</script>
<style lang="less" scoped>
  .page_root {
  width: 100%;
  height: 100%;
  overflow: auto;
  }
  .page_root :deep(.@{ant-prefix}-spin-nested-loading),
  .page_root :deep(.@{ant-prefix}-spin-container)
   {
      height: 100%;
  }
  .page_root :deep(.@{ant-prefix}-spin-container .@{ant-prefix}-table-wrapper)
   {
      display: flex;
      flex-flow: column nowrap;
      justify-content: flex-start;
  }
  .page_root :deep(.@{ant-prefix}-table)
   {
    flex: auto;
    overflow: auto;
  }
  .table-moreBtn_down {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100px;
  }

  .table-moreBtn_menu :deep(.table-moreBtn_menu-item):hover {
    background: #ebf1ff;
  }

  /*  表格树结构样式处理，展开按钮层级增加*/
  :deep(.@{ant-prefix}-table-row-expand-icon) {
    z-index: 1;
  }
  /*  表格树结构 由于每个表格项采用自定义组件，使用绝对定位布局，开启树结构导致显示异常，暂时使用层级定位位置 */
  :deep(.@{ant-prefix}-table-row-level-1 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 15px !important;
    width: calc(100% - 15px);
  }
  :deep(.@{ant-prefix}-table-row-level-2 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 30px !important;
    width: calc(100% - 30px);
  }
  :deep(.@{ant-prefix}-table-row-level-3 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 45px !important;
    width: calc(100% - 45px);
  }
  :deep(.@{ant-prefix}-table-row-level-4 .@{ant-prefix}-table-cell-with-append .cell-wrapper-left) {
    left: 60px !important;
    width: calc(100% - 60px);
  }

  /* 穿梭框改变默认样式，为根据组件样式控制左右栏宽度。 */
  :deep(.@{ant-prefix}-transfer-list)
   {
      height: 100%;
      width: 50%;
  }
  .vid_3emijbqra1 :deep(input) {
        cursor: undefined;
      }
  .vid_3emijbqra1{
      width:100%
  }
  .vid_8pq5h8kjty{
      width:100%
  }
  .vid_fdfc042t11 :deep(input) {
        text-decoration: undefined;
        font-weight: undefined;
        text-align: undefined;
        font-style: undefined;
        cursor: undefined;
      }
  .vid_fdfc042t11{
      width:100%
  }
  .vid_pbk6at6cxv{
      margin-bottom:0px
  }
  .vid_ekimywdomj :deep(span) {
        text-decoration: undefined;
        font-size: undefined;
        line-height: undefined;
        color: undefined;
      }
  .vid_nsl21yhm86{
      box-shadow:0px 0px 0px 0px
  }
  .vid_hofoolfsxh{
      height:100%;
      box-shadow:0px 0px 0px 0px #FFFFFF
  }
  .vid_tbaf1blzmc{
      height:100%;
      overflow-x:auto;
      overflow-y:auto;
      display:block
  }
  .vid_tbaf1blzmc:active{
      height:856px;
      background-color:rgba(255, 255, 255, 1);
      box-shadow:0px 0px 8px 0px #CCD7E9
  }
  .vid_yh7c6caxnc{
      padding-top:16px;
      padding-right:24px;
      padding-bottom:16px;
      padding-left:24px;
      background-color:#FFFFFF;
      box-shadow:0px 0px 0px 0px
  }
  .vid_6h2qv1wq73{
      width:100%
  }
  .vid_o4h5lwg0r0{
      width:100%;
      box-shadow:0px 0px 0px 0px
  }
  .vid_m4igum3zuw{
      margin-left:24px;
      background-color:#3875FF;
      border-radius:2px
  }
  .vid_svfcotts7a{
      margin-left:16px;
      border-radius:2px
  }
  .vid_r81g68q8tj{
      margin-bottom:0px
  }
  .vid_gv96gndjai :deep(input) {
        cursor: undefined;
      }
  .vid_u31jzhb4wq{
      width:100%;
      height:100%;
      display:block;
      margin-top:16px;
      padding-top:16px;
      padding-right:24px;
      padding-bottom:16px;
      padding-left:24px;
      background-color:#FFFFFF;
      box-shadow:0px 0px 0px 0px
  }
  .vid_0fb3krwsqw{
      width:100%;
      height:723px
  }
  .vid_ypeo0zjfpk{
      padding-left:8px;
      font-weight:600;
      font-size:16px;
      border-left-style:solid;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-thead) > tr {
      height: 40px;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-thead) > tr > th {
    background: #3875FF;
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";;
    font-weight: 600;
    color: #FFFFFF;
    border-bottom:1px solid #D9D9D9;
    padding: 8px 16px;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr:not(:last-child) > th {
    border-bottom:1px solid #D9D9D9;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th {
    border-right:1px solid #D9D9D9;
  }
  /* 将表格自带的左边框取消，方便设置表头边框颜色和内容边框颜色 */
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container {
    border-left: none;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th[colstart='0']:first-child {
    border-left:1px solid #D9D9D9;
  }
  /* 开启粘性表头后，表格结构会发生变化 需另外处理 */
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-header table {
    border-top:1px solid #D9D9D9;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container > .@{ant-prefix}-table-content > table {
    border-top:1px solid #D9D9D9;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-thead) > tr > th:not(:last-child):not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan])::before {
      background: #D9D9D9;
      width: 1px;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-cell-scrollbar) {
      box-shadow: none;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-tbody) tr {
    height: 40px;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-tbody) tr > td {
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";;
    font-weight: 400;
    color: #262626;
    border-bottom:1px solid #D9D9D9;
    padding: 0 16px;
    word-break: break-all;
    .cell-wrapper {
      padding: 0 16px;
    }
  }

  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-tbody) tr > td .cell-wrapper {
    padding: 0 16px;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
    padding: 0;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn {
    padding: 0 30px 0 0;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn:last-child {
    padding: 0;
  }
  .vid_hq1d1nkzf2 :deep(.table-striped-odd) td {
    background-color: #FFFFFF;
  }
  .vid_hq1d1nkzf2 :deep(.table-striped-even) td {
    background-color: #F8FAFC;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td {
    border-right:1px solid #D9D9D9;
  }
  .vid_hq1d1nkzf2 :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td:first-child {
    border-left:1px solid #D9D9D9;
  }
  .vid_hq1d1nkzf2{
      width:100%;
      margin-top:12px
  }
  .vid_hq1d1nkzf2:active{
      width:100%
  }
  .vid_hq1d1nkzf2:focus{
      width:100%
  }
  .vid_hq1d1nkzf2:hover{
      width:100%
  }
  .vid_i5jz948nfe{
      display:flex;
      align-items:center;
      flex-wrap:undefined
  }
  .vid_cx2j4vhu5t{
      display:flex;
      flex-direction:row;
      align-items:center;
      justify-content:flex-end;
      flex-wrap:undefined;
      box-shadow:0px 0px 0px 0px
  }
  .vid_h21x9zl9kx{
      color:rgba(56, 117, 255, 1)
  }
  .vid_h9th6upcjx{
      margin-right:24px;
      font-weight:600;
      color:rgba(56, 117, 255, 1);
      font-size:16px
  }
  .vid_2qw7wj7vhe{
      color:rgba(56, 117, 255, 1);
      border-style:solid;
      border-width:1px;
      border-color:#3875FF;
      border-radius:2px
  }
  .vid_ghl5u8b9mp{
      padding-left:8px;
      font-weight:600;
      font-size:16px;
      border-left-style:solid;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-thead) > tr {
      height: 40px;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-thead) > tr > th {
    background: #3875FF;
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";;
    font-weight: 600;
    color: #FFFFFF;
    border-bottom:1px solid #D9D9D9;
    padding: 8px 16px;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr:not(:last-child) > th {
    border-bottom:1px solid #D9D9D9;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th {
    border-right:1px solid #D9D9D9;
  }
  /* 将表格自带的左边框取消，方便设置表头边框颜色和内容边框颜色 */
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container {
    border-left: none;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-thead > tr > th[colstart='0']:first-child {
    border-left:1px solid #D9D9D9;
  }
  /* 开启粘性表头后，表格结构会发生变化 需另外处理 */
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-header table {
    border-top:1px solid #D9D9D9;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container > .@{ant-prefix}-table-content > table {
    border-top:1px solid #D9D9D9;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-thead) > tr > th:not(:last-child):not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan])::before {
      background: #D9D9D9;
      width: 1px;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-cell-scrollbar) {
      box-shadow: none;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-tbody) tr {
    height: 40px;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-tbody) tr > td {
    font-size: 14px;
    font-family: arial, helvetica, "microsoft yahei";;
    font-weight: 400;
    color: #262626;
    border-bottom:1px solid #D9D9D9;
    padding: 0 16px;
    word-break: break-all;
    .cell-wrapper {
      padding: 0 16px;
    }
  }

  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-tbody) tr > td .cell-wrapper {
    padding: 0 16px;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
    padding: 0;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn {
    padding: 0 30px 0 0;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table-tbody) tr > td .@{ant-prefix}-btn:last-child {
    padding: 0;
  }
  .vid_5ymmknwo2e :deep(.table-striped-odd) td {
    background-color: #FFFFFF;
  }
  .vid_5ymmknwo2e :deep(.table-striped-even) td {
    background-color: #F8FAFC;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td {
    border-right:1px solid #D9D9D9;
  }
  .vid_5ymmknwo2e :deep(.@{ant-prefix}-table.@{ant-prefix}-table-bordered) .@{ant-prefix}-table-container .@{ant-prefix}-table-tbody tr > td:first-child {
    border-left:1px solid #D9D9D9;
  }
  .vid_5ymmknwo2e{
      width:100%;
      margin-top:16px
  }
  .vid_5ymmknwo2e:active{
      width:100%
  }
  .vid_5ymmknwo2e:focus{
      width:100%
  }
  .vid_5ymmknwo2e:hover{
      width:100%
  }
  .vid_amn8b36obs{
      height:100%;
      overflow-x:visible;
      overflow-y:auto;
      display:block;
      padding-top:16px;
      padding-right:24px;
      padding-bottom:16px;
      padding-left:24px;
      background-color:#FFFFFF;
      box-shadow:0px 0px 0px 0px ;
      border-top-style:none;
      border-top-width:16px;
      border-top-color:#8C8C8C;
      border-right-color:#F0F2F5
  }
  .vid_2jde4eeige{
      margin-bottom:16px
  }
  .vid_y7vcxwycjn{
      margin-top:8px;
      font-family:arial, helvetica, "microsoft yahei";;
      font-weight:600;
      color:rgba(38, 38, 38, 1);
      font-size:16px;
      line-height:16px;
      border-left-style:none;
      border-left-width:4px;
      border-left-color:#3875FF
  }
  .vid_e57pxzj5tq{
      margin-bottom:16px
  }
  .vid_kjy9opxgxl{
      width:100%;
      border-color:#CCCCCC;
      border-radius:4px
  }
  .vid_8kjlglq0ja{
      height:800px;
      overflow-y:auto
  }
  .vid_t5g2fxyxpm :deep(span) {
        color: undefined;
      }

  .page_root {
    overflow: hidden !important;
  }

  :deep(.@{ant-prefix}-table-empty .@{ant-prefix}-table-tbody tr > td) {
   padding: 0;
  }
</style>